package com.xbongbong.schedule.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.schedule.pojo.dto.ScheduleTaskActionDTO;
import com.xbongbong.schedule.pojo.vo.ScheduleTaskActionVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "pro-web-pc", contextId = "scheduleTaskActionFeignClient")
public interface ScheduleTaskActionFeignClient {

    @RequestMapping(value = "/pro/v1/schedule/task/action", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<ScheduleTaskActionVO> scheduleTaskAction(@RequestBody ScheduleTaskActionDTO scheduleTaskActionDTO, @RequestParam("lang") String lang);

}
